package com.aaa.sbm.common;

import com.aaa.sbm.util.Result;
import com.aaa.sbm.util.ResultStatus;

public class ResultUtil {
    public static <T> Result<T> success(T data) {
        return new Result<>(200, "操作成功", data);
    }

    public static <T> Result<T> fail(String message) {
        return new Result<>(500, message, null);
    }
}
